package com.hwj.mapper;

import com.hwj.entity.Chat;
import com.hwj.entity.Follow;
import com.hwj.entity.Post;
import com.hwj.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【t_follow】的数据库操作Mapper
* @createDate 2024-03-11 17:22:05
* @Entity com.hwj.entity.Follow
*/
@Mapper
public interface FollowMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Follow record);

    int insertSelective(Follow record);

    Follow selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Follow record);

    int updateByPrimaryKey(Follow record);

    List<User> getFriends(Long userId);

    List<Post> listFriendsPosts(@Param("userId") Long userId,@Param("friendId") Long friendId);

    List<Follow> listFollows();

}
